import com.dinmax.flash.gsa.communication.action.*
import com.dinmax.flash.gsa.communication.action.game.*
import com.dinmax.flash.gsa.communication.*
import com.dinmax.flash.gsa.sgs.game.*
import com.dinmax.flash.gsa.communication.parser.*

class ActionClientGameInit extends ActionGame{

	private var name:String="ActionClientGameInit";

	public function execute(node:XMLNode):CommunicationEvent {
		
		var nodes:Array=getNode(node, "DATA");
		//trace("ActionClientGameInit.as | execute");
		for(var i:Number=0; i < nodes.length; i++){
			
			switch (getAttribute(nodes[i], "TYPE")) {
			
			case "Result":
				
				var result:Result=(ResultParser.parse(nodes[i]));
				
			break;
			
			}; // fin switch
			
		};
		var com:CommunicationEventGameResult= new CommunicationEventGameResult();
		com.setResult(result);
		com.setNoRound(true);
		return com;
	};

}; // fin de clase